
var chart; // globally available
$(document).ready(function() {
	chart = new Highcharts.Chart({
		chart: {
			renderTo: 'container',
			defaultSeriesType: 'column'
		},
		title: {
			text: 'Monitoring Menu Diet'
		},
		subtitle: {
			text: 'RSUD MOH. Anwar Kabupaten Sumenep'
		},
		xAxis: {
			categories: <?php echo json_encode($tgl) ?>,
			labels: {
						rotation: -45,
						align: 'right',
						style: {
							 font: 'normal 7px Verdana, sans-serif'
						}
					},
		},
		yAxis: {
			min: 0,
			title: {
				text: 'Jumlah Pasien'
			}
		},
		legend: {
			layout: 'vertical',
			backgroundColor: '#FFFFFF',
			align: 'left',
			verticalAlign: 'top',
			x: 100,
			y: 70,
			floating: true,
			shadow: true
		},
		tooltip: {
			formatter: function() {
				return ''+
					this.x +': '+ this.y +' mm';
			}
		},
		plotOptions: {
			column: {
				pointPadding: 0.2,
				borderWidth: 0
			}
		},
			series: [{
			name: 'Kategori Diet',
			data: [10,20,30,40,50,60,70,80,90,100,110,120,130,140,150]
	
		}]
	});
	
	
});